﻿using Prism.Services.Dialogs;
using System.Windows;
using System.Windows.Input;
namespace Yuwell.AtomizerWeight.App.Views
{
    /// <summary>
    /// Interaction logic for CloseWindow.xaml
    /// </summary>
    public partial class CloseWindow : Window
    {
        /// <summary>
        /// 
        /// </summary>
        public string Caption { get; set; } = "是否确认关闭?";
        public string Message { get; set; } = "";
        public CloseWindow()
        {
            InitializeComponent();
            DataContext = this;
        }
    
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Submit_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }
    }
}
